<h2><?php echo __('Fotos da Capa'); ?></h2>

<p><?php echo $this->Html->link(__('Nova foto'), '/fotos_capas/add', arraY('class'=>'btn btn-primary'))?>

<table cellpadding="0" cellspacing="0" class="table table-bordered table-hover table-striped">
<thead>
<tr>
		<th><?php echo $this->Paginator->sort('titulo'); ?></th>
		<th><?php echo $this->Paginator->sort('texto'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($fotosCapas as $fotosCapa): ?>
<tr>
	<td><?php echo h($fotosCapa['FotosCapa']['titulo']); ?>&nbsp;</td>
	<td><?php echo h($fotosCapa['FotosCapa']['texto']); ?>&nbsp;</td>
	<td class="actions">
		<div class="btn-toolbar">
			<div class="btn-group">
				<?php echo $this->Html->link('<i class="icon-search"></i>', '/img/fotos_capa/'.$fotosCapa['FotosCapa']['foto'], array('class'=>'btn', 'escape'=>false, 'title'=>__('Ver'))); ?>
				<?php echo $this->Html->link('<i class="icon-edit"></i>', array('action' => 'edit', $fotosCapa['FotosCapa']['id']), array('class'=>'btn', 'escape'=>false, 'title'=>__('Editar'))); ?>
				<?php echo $this->Form->postLink('<i class="icon-trash"></i>', array('action' => 'delete', $fotosCapa['FotosCapa']['id']), array('class'=>'btn', 'escape'=>false, 'title'=>__('Excluir'), __('Are you sure you want to delete # %s?', $fotosCapa['FotosCapa']['id']))); ?>
			</div>
		</div>
	</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<p class="text-info">
<?php
echo $this->Paginator->counter(array(
'format' => __('Página {:page} de {:pages}, total de {:count} registros')
));
?>	</p>
<div class="pagination pagination-centered">
	<ul>
		<?php echo $this->Paginator->prev(
			'< '.__('Anterior'),
			array('tag' => 'li', 'class' => 'prev'),
			'<a>< '.__('Anterior').'</a>',
			array('tag' => 'li', 'escape' => false, 'class' => 'prev disabled')
		);?>
		<?php echo $this->Paginator->numbers(array('separator' => '', 'tag'=>'li', 'currentTag'=>'a', 'currentClass'=>'active')); ?>
		<?php echo $this->Paginator->next(
			__('Próximo'). ' >',
			array('tag' => 'li', 'class' => 'prev'),
			'<a>'.__('Próximo').' ></a>',
			array('tag' => 'li', 'escape' => false, 'class' => 'prev disabled')
		);?>
	</ul>
</div>